import scala.App

/**
 * Created by root on 2015/2/9.
 *

 */


object demo3 {
  def main(args: Array[String]): Unit = {


    val x = "hello";
    val y =  x match {
      case "world" => 2;
      case "hello" => 3;
      case _ => 4;
    }

    print(y)//3


    



  }
}
